
<div class="form-group">
<div class ="container">
<form class="form-horizontal" role="form" action="<?php echo site_url('pembul/ubah');?>/<?php echo $hasil->ID_LAPORAN; ?>" method="post">
<?php
if($this->session->userdata('role')==5) { $readstatus=""; } else { $readstatus="readonly"; }
if($this->session->userdata('role')==2 or $this->session->userdata('role')==3)
{
?>
<label>Bagian</label>
<input readonly class="form-control" id="bagian" type="text" name="bagian" maxlength="50" value="<?php echo $hasil->BAGIAN; ?>" readonly></br>
<label>Departemen </label>
<input readonly class="form-control" id="departemen" type="text" name="departemen" maxlength="50" value="<?php echo $hasil->DEPARTEMEN; ?>" required ></br>
<label>Tanggal </label>
<input readonly class="form-control" type="text" name="tanggal_jam" maxlength="50" value="<?php echo $hasil->TANGGAL; ?>" required ></br>

</br></br></div>
 <div class="container">
 
 <table class="table table-bordered table-condensed">
 <thead>
        <tr>
          <th>No</th>
          <th>Hasil Temuan</th>
          <th>Temuan Berulang Ke</th>
          <th>Tindak Lanjut</th>
		  <th>Status</th>
        </tr>
      </thead>
	  <tbody>
        <tr>
		<td>I</td>
          <td><b>Sikap Tidak Aman</b></td>
         
 <td>
 </td>
  <td>
 </td>
 <td>
 </td>
        </tr>
		<tr>
		<td></td>
		<td><input readonly class="form-control" id="sta1" type="text" name="sta1" maxlength="50" value="<?php echo $hasil->S1; ?>" /></br>
		<input readonly class="form-control" id="sta2" type="text" name="sta2" maxlength="50" value="<?php echo $hasil->S2; ?>" /></br>
		<input readonly class="form-control" id="sta3" type="text" name="sta3" maxlength="50" value="<?php echo $hasil->S3; ?>" /></br>
		<input readonly class="form-control" id="sta4" type="text" name="sta4" maxlength="50" value="<?php echo $hasil->S4; ?>" /></br>
		<input readonly class="form-control" id="sta5" type="text" name="sta5" maxlength="50" value="<?php echo $hasil->S5; ?>" /></td>
		<td><input readonly class="form-control" id="tbk1" type="text" name="tbk1" maxlength="50" value="<?php echo $hasil->TBS1; ?>" /></br>
		<input readonly class="form-control" id="tbk2" type="text" name="tbk2" maxlength="50" value="<?php echo $hasil->TBS2; ?>" /></br>
		<input readonly class="form-control" id="tbk3" type="text" name="tbk3" maxlength="50" value="<?php echo $hasil->TBS3; ?>" /></br>
		<input readonly class="form-control" id="tbk4" type="text" name="tbk4" maxlength="50" value="<?php echo $hasil->TBS4; ?>" /></br>
		<input readonly class="form-control" id="tbk5" type="text" name="tbk5" maxlength="50" value="<?php echo $hasil->TBS5; ?>" /></td>
		<td><input readonly class="form-control" id="tar1" type="text" name="tar1" maxlength="50" value="<?php echo $hasil->TLS1; ?>" /></br>
		<input readonly class="form-control" id="tar2" type="text" name="tar2" maxlength="50" value="<?php echo $hasil->TLS2; ?>" /></br>
		<input readonly class="form-control" id="tar3" type="text" name="tar3" maxlength="50" value="<?php echo $hasil->TLS3; ?>" /></br>
		<input readonly class="form-control" id="tar4" type="text" name="tar4" maxlength="50" value="<?php echo $hasil->TLS4; ?>" /></br>
		<input readonly class="form-control" id="tar5" type="text" name="tar5" maxlength="50" value="<?php echo $hasil->TLS5; ?>" /></td>
		<td>
<?php
if($hasil->RTLS1==1)
{
?>
		<select readonly name="s1" class="form-control"> <option value="3">Open</option>
    <option value="1" selected>On Progress</option>
    <option value="2">Selesai</option>
</select></br>
<?php
}
else if($hasil->RTLS1==3)
{
?>
		<select readonly name="s1" class="form-control"> <option value="3" selected>Open</option>
    <option value="1">On Progress</option>
    <option value="2">Selesai</option>
</select></br>
<?php
}
else
{
?>
		<select readonly name="s1" class="form-control"> <option value="3">Open</option>
    <option value="1">On Progress</option>
    <option value="2" selected>Selesai</option>
</select></br>
<?php
}
?>
<?php
if($hasil->RTLS2==1)
{
?>
<select readonly name="s2" class="form-control"> <option value="3">Open</option>
    <option value="1" selected>On Progress</option>
    <option value="2">Selesai</option>
</select></br>
<?php
}
else if($hasil->RTLS2==3)
{
?>
<select readonly name="s2" class="form-control"> <option value="3" selected>Open</option>
    <option value="1">On Progress</option>
    <option value="2">Selesai</option>
</select></br>
<?php
}
else
{
?>
<select readonly name="s2" class="form-control"> <option value="3">Open</option>
    <option value="1">On Progress</option>
    <option value="2" selected>Selesai</option>
</select></br>
<?php
}
?>
<?php
if($hasil->RTLS3==1)
{
?>
<select readonly name="s3" class="form-control"> <option value="3">Open</option>
    <option value="1" selected>On Progress</option>
    <option value="2">Selesai</option>
</select></br>
<?php
}
else if($hasil->RTLS3==3)
{
?>
<select readonly name="s3" class="form-control"> <option value="3" selected>Open</option>
    <option value="1">On Progress</option>
    <option value="2">Selesai</option>
</select></br>
<?php
}
else
{
?>
<select readonly name="s3" class="form-control"> <option value="3">Open</option>
    <option value="1">On Progress</option>
    <option value="2" selected>Selesai</option>
</select></br>
<?php
}
?>
<?php
if($hasil->RTLS4==1)
{
?>
<select readonly name="s4" class="form-control"> <option value="3">Open</option>
    <option value="1" selected>On Progress</option>
    <option value="2">Selesai</option>
</select></br>
<?php
}
else if($hasil->RTLS4==3)
{
?>
<select readonly name="s4" class="form-control"> <option value="3" selected>Open</option>
    <option value="1">On Progress</option>
    <option value="2">Selesai</option>
</select></br>
<?php
}
else
{
?>
<select readonly name="s4" class="form-control"> <option value="3">Open</option>
    <option value="1">On Progress</option>
    <option value="2" selected>Selesai</option>
</select></br>
<?php
}
?>
<?php
if($hasil->RTLS5==1)
{
?>
<select readonly name="s5" class="form-control"> <option value="3">Open</option>
    <option value="1" selected>On Progress</option>
    <option value="2">Selesai</option>
</select></br>
<?php
}
else if($hasil->RTLS5==3)
{
?>
<select readonly name="s5" class="form-control"> <option value="3" selected>Open</option>
    <option value="1">On Progress</option>
    <option value="2">Selesai</option>
</select></br>
<?php
}
else
{
?>
<select readonly name="s5" class="form-control"> <option value="3">Open</option>
    <option value="1">On Progress</option>
    <option value="2" selected>Selesai</option>
</select></br>
<?php
}
?>
</td>
		</tr>
		
		<tr>
		<td>II</td>
          <td><b>Kondisi Tidak Aman</b></td>
           <td>
 </td>
 <td>
 </td>
 <td>
 </td>
        </tr>
		<tr>
		<td></td>
		<td><input readonly class="form-control" id="kta1" type="text" name="kta1" maxlength="50" value="<?php echo $hasil->K1; ?>" /></br>
		<input readonly class="form-control" id="kta2" type="text" name="kta2" maxlength="50" value="<?php echo $hasil->K2; ?>" /></br>
		<input readonly class="form-control" id="kta3" type="text" name="kta3" maxlength="50" value="<?php echo $hasil->K3; ?>" /></br>
		<input readonly class="form-control" id="kta4" type="text" name="kta4" maxlength="50" value="<?php echo $hasil->K4; ?>" /></br>
		<input readonly class="form-control" id="kta5" type="text" name="kta5" maxlength="50" value="<?php echo $hasil->K5; ?>" /></td>
		<td><input readonly class="form-control" id="rtl6" type="text" name="rt6" maxlength="50" value="<?php echo $hasil->TBK1; ?>" /></br>
		<input readonly class="form-control" id="rtl7" type="text" name="rt7" maxlength="50" value="<?php echo $hasil->TBK2; ?>" /></br>
		<input readonly class="form-control" id="rtl8" type="text" name="rt8" maxlength="50" value="<?php echo $hasil->TBK3; ?>" /></br>
		<input readonly class="form-control" id="rtl9" type="text" name="rt9" maxlength="50" value="<?php echo $hasil->TBK4; ?>" /></br>
		<input readonly class="form-control" id="rtl10" type="text" name="rt10" maxlength="50" value="<?php echo $hasil->TBK5; ?>" /></td>
		<td><input readonly class="form-control" id="tar6" type="text" name="tar6" maxlength="50" value="<?php echo $hasil->TLK1; ?>" /></br>
		<input readonly class="form-control" id="tar7" type="text" name="tar7" maxlength="50" value="<?php echo $hasil->TLK2; ?>" /></br>
		<input readonly class="form-control" id="tar8" type="text" name="tar8" maxlength="50" value="<?php echo $hasil->TLK3; ?>" /></br>
		<input readonly class="form-control" id="tar9" type="text" name="tar9" maxlength="50" value="<?php echo $hasil->TLK4; ?>" /></br>
		<input readonly class="form-control" id="tar10" type="text" name="tar10" maxlength="50" value="<?php echo $hasil->TLK5; ?>" /></td>
		<td>
<?php
if($hasil->RTLK1==1)
{
?>
<select readonly name="k1" class="form-control"> <option value="3">Open</option>
    <option value="1" selected>On Progress</option>
    <option value="2">Selesai</option>
</select></br>
<?php
}
else if($hasil->RTLK1==3)
{
?>
<select readonly name="k1" class="form-control"> <option value="3" selected>Open</option>
    <option value="1">On Progress</option>
    <option value="2">Selesai</option>
</select></br>
<?php
}
else
{
?>
<select readonly name="k1" class="form-control"> <option value="3">Open</option>
    <option value="1">On Progress</option>
    <option value="2" selected>Selesai</option>
</select></br>
<?php
}
?>
<?php
if($hasil->RTLK2==1)
{
?>
<select readonly name="k2" class="form-control"> <option value="3">Open</option>
    <option value="1" selected>On Progress</option>
    <option value="2">Selesai</option>
</select></br>
<?php
}
else if($hasil->RTLK2==3)
{
?>
<select readonly name="k2" class="form-control"> <option value="3" selected>Open</option>
    <option value="1">On Progress</option>
    <option value="2">Selesai</option>
</select></br>
<?php
}
else
{
?>
<select readonly name="k2" class="form-control"> <option value="3">Open</option>
    <option value="1">On Progress</option>
    <option value="2" selected>Selesai</option>
</select></br>
<?php
}
?>
<?php
if($hasil->RTLK3==1)
{
?>
<select readonly name="k3" class="form-control"> <option value="3">Open</option>
    <option value="1" selected>On Progress</option>
    <option value="2">Selesai</option>
</select></br>
<?php
}
else if($hasil->RTLK3==3)
{
?>
<select readonly name="k3" class="form-control"> <option value="3" selected>Open</option>
    <option value="1">On Progress</option>
    <option value="2">Selesai</option>
</select></br>
<?php
}
else
{
?>
<select readonly name="k3" class="form-control"> <option value="3">Open</option>
    <option value="1">On Progress</option>
    <option value="2" selected>Selesai</option>
</select></br>
<?php
}
?>
<?php
if($hasil->RTLK4==1)
{
?>
<select readonly name="k4" class="form-control"> <option value="3">Open</option>
    <option value="1" selected>On Progress</option>
    <option value="2">Selesai</option>
</select></br>
<?php
}
else if($hasil->RTLK4==3)
{
?>
<select readonly name="k4" class="form-control"> <option value="3" selected>Open</option>
    <option value="1">On Progress</option>
    <option value="2">Selesai</option>
</select></br>
<?php
}
else
{
?>
<select readonly name="k4" class="form-control"> <option value="3">Open</option>
    <option value="1">On Progress</option>
    <option value="2" selected>Selesai</option>
</select></br>
<?php
}
?>
<?php
if($hasil->RTLK5==1)
{
?>
<select readonly name="k5" class="form-control"> <option value="3">Open</option>
    <option value="1" selected>On Progress</option>
    <option value="2">Selesai</option>
</select></br>
<?php
}
else if($hasil->RTLK5==3)
{
?>
<select readonly name="k5" class="form-control"> <option value="3" selected>Open</option>
    <option value="1">On Progress</option>
    <option value="2">Selesai</option>
</select></br>
<?php
}
else
{
?>
<select readonly name="k5" class="form-control"> <option value="3">Open</option>
    <option value="1">On Progress</option>
    <option value="2" selected>Selesai</option>
</select></br>
<?php
}
?>
</td>
		</tr>
		
		<tr>
		<td>III</td>
          <td><b>Lingkungan Kerja</b></td>
           <td>
 </td>
 <td>
 </td>
 <td>
 </td>
        </tr>
		<tr>
		<td></td>
		<td><input readonly class="form-control" id="lk1" type="text" name="lk1" maxlength="50" value="<?php echo $hasil->G1; ?>" /></br>
		<input readonly class="form-control" id="lk2" type="text" name="lk2" maxlength="50" value="<?php echo $hasil->G2; ?>" /></br>
		<input readonly class="form-control" id="lk3" type="text" name="lk3" maxlength="50" value="<?php echo $hasil->G3; ?>" /></br>
		<input readonly class="form-control" id="lk4" type="text" name="lk4" maxlength="50" value="<?php echo $hasil->G4; ?>" /></br>
		<input readonly class="form-control" id="lk5" type="text" name="lk5" maxlength="50" value="<?php echo $hasil->G5; ?>" /></td>
		<td><input readonly class="form-control" id="rtl11" type="text" name="rt11" maxlength="50" value="<?php echo $hasil->TBG1; ?>" /></br>
		<input readonly class="form-control" id="rtl12" type="text" name="rt12" maxlength="50" value="<?php echo $hasil->TBG2; ?>" /></br>
		<input readonly class="form-control" id="rtl13" type="text" name="rt13" maxlength="50" value="<?php echo $hasil->TBG3; ?>" /></br>
		<input readonly class="form-control" id="rtl14" type="text" name="rt14" maxlength="50" value="<?php echo $hasil->TBG4; ?>" /></br>
		<input readonly class="form-control" id="rtl15" type="text" name="rt15" maxlength="50" value="<?php echo $hasil->TBG5; ?>" /></td>
		<td><input readonly class="form-control" id="tar11" type="text" name="tar11" maxlength="50" value="<?php echo $hasil->TLG1; ?>" /></br>
		<input readonly class="form-control" id="tar12" type="text" name="tar12" maxlength="50" value="<?php echo $hasil->TLG2; ?>" /></br>
		<input readonly class="form-control" id="tar13" type="text" name="tar13" maxlength="50" value="<?php echo $hasil->TLG3; ?>" /></br>
		<input readonly class="form-control" id="tar14" type="text" name="tar14" maxlength="50" value="<?php echo $hasil->TLG4; ?>" /></br>
		<input readonly class="form-control" id="tar15" type="text" name="tar15" maxlength="50" value="<?php echo $hasil->TLG5; ?>" /></td>
		<td>
<?php
if($hasil->RTLG1==1)
{
?>
<select readonly name="l1" class="form-control"> <option value="3">Open</option>
    <option value="1" selected>On Progress</option>
    <option value="2">Selesai</option>
</select></br>
<?php
}
else if($hasil->RTLG1==3)
{
?>
<select readonly name="l1" class="form-control"> <option value="3" selected>Open</option>
    <option value="1">On Progress</option>
    <option value="2">Selesai</option>
</select></br>
<?php
}
else
{
?>
<select readonly name="l1" class="form-control"> <option value="3">Open</option>
    <option value="1">On Progress</option>
    <option value="2" selected>Selesai</option>
</select></br>
<?php
}
?>
<?php
if($hasil->RTLG2==1)
{
?>
<select readonly name="l2" class="form-control"> <option value="3">Open</option>
    <option value="1" selected>On Progress</option>
    <option value="2">Selesai</option>
</select></br>
<?php
}
else if($hasil->RTLG2==3)
{
?>
<select readonly name="l2" class="form-control"> <option value="3" selected>Open</option>
    <option value="1">On Progress</option>
    <option value="2">Selesai</option>
</select></br>
<?php
}
else
{
?>
<select readonly name="l2" class="form-control"> <option value="3">Open</option>
    <option value="1">On Progress</option>
    <option value="2" selected>Selesai</option>
</select></br>
<?php
}
?>
<?php
if($hasil->RTLG3==1)
{
?>
<select readonly name="l3" class="form-control"> <option value="3">Open</option>
    <option value="1" selected>On Progress</option>
    <option value="2">Selesai</option>
</select></br>
<?php
}
else if($hasil->RTLG3==3)
{
?>
<select readonly name="l3" class="form-control"> <option value="3" selected>Open</option>
    <option value="1">On Progress</option>
    <option value="2">Selesai</option>
</select></br>
<?php
}
else
{
?>
<select readonly name="l3" class="form-control"> <option value="3">Open</option>
    <option value="1">On Progress</option>
    <option value="2" selected>Selesai</option>
</select></br>
<?php
}
?>
<?php
if($hasil->RTLG4==1)
{
?>
<select readonly name="l4" class="form-control"> <option value="3">Open</option>
    <option value="1" selected>On Progress</option>
    <option value="2">Selesai</option>
</select></br>
<?php
}
else if($hasil->RTLG4==3)
{
?>
<select readonly name="l4" class="form-control"> <option value="3" selected>Open</option>
    <option value="1">On Progress</option>
    <option value="2">Selesai</option>
</select></br>
<?php
}
else
{
?>
<select readonly name="l4" class="form-control"> <option value="3">Open</option>
    <option value="1">On Progress</option>
    <option value="2" selected>Selesai</option>
</select></br>
<?php
}
?>
<?php
if($hasil->RTLG5==1)
{
?>
<select readonly name="l5" class="form-control"> <option value="3">Open</option>
    <option value="1" selected>On Progress</option>
    <option value="2">Selesai</option>
</select></br>
<?php
}
else if($hasil->RTLG5==3)
{
?>
<select readonly name="l5" class="form-control"> <option value="3" selected>Open</option>
    <option value="1">On Progress</option>
    <option value="2">Selesai</option>
</select></br>
<?php
}
else
{
?>
<select readonly name="l5" class="form-control"> <option value="3">Open</option>
    <option value="1">On Progress</option>
    <option value="2" selected>Selesai</option>
</select></br>
<?php
}
?>
</td>
		</tr></table>
		NIK Anggota     </br>
        <input readonly class="form-control" id="nama1" type="text" name="nama1" maxlength="50" value="<?php echo $hasil->ANGGOTA; ?>"/>
        <input readonly class="form-control" id="nama2" type="text" name="nama2" maxlength="50" value="<?php echo $hasil->ANGGOTA2; ?>"/>
</br></br>
<?php
}
else
{
?>
<label>Bagian</label>
<input class="form-control" id="bagian" type="text" name="bagian" maxlength="50" value="<?php echo $hasil->BAGIAN; ?>"></br>
<label>Departemen </label>
<input class="form-control" id="departemen" type="text" name="departemen" maxlength="50" value="<?php echo $hasil->DEPARTEMEN; ?>" readonly ></br>
<label>Tanggal </label>
<input class="form-control" id="datepicker" type="text" name="tanggal_jam" maxlength="50" value="<?php echo $hasil->TANGGAL; ?>"></br>

</br></br></div>
 <div class="container">
 
 <table class="table table-bordered table-condensed">
 <thead>
        <tr>
          <th>No</th>
          <th>Hasil Temuan</th>
          <th>Temuan Berulang Ke</th>
          <th>Tindak Lanjut</th>
		  <th>Status</th>
        </tr>
      </thead>
	  <tbody>
        <tr>
		<td>I</td>
          <td><b>Sikap Tidak Aman</b></td>
         
 <td>
 </td>
  <td>
 </td>
 <td>
 </td>
        </tr>
		<tr>
		<td></td>
		<td><input class="form-control" id="sta1" type="text" name="sta1" maxlength="50" value="<?php echo $hasil->S1; ?>" /></br>
		<input class="form-control" id="sta2" type="text" name="sta2" maxlength="50" value="<?php echo $hasil->S2; ?>" /></br>
		<input class="form-control" id="sta3" type="text" name="sta3" maxlength="50" value="<?php echo $hasil->S3; ?>" /></br>
		<input class="form-control" id="sta4" type="text" name="sta4" maxlength="50" value="<?php echo $hasil->S4; ?>" /></br>
		<input class="form-control" id="sta5" type="text" name="sta5" maxlength="50" value="<?php echo $hasil->S5; ?>" /></td>
		<td><input class="form-control" id="tbk1" type="text" name="tbk1" maxlength="50" <?php echo $readstatus; ?> value="<?php echo $hasil->TBS1; ?>" /></br>
		<input class="form-control" id="tbk2" type="text" name="tbk2" maxlength="50" <?php echo $readstatus; ?> value="<?php echo $hasil->TBS2; ?>" /></br>
		<input class="form-control" id="tbk3" type="text" name="tbk3" maxlength="50" <?php echo $readstatus; ?> value="<?php echo $hasil->TBS3; ?>" /></br>
		<input class="form-control" id="tbk4" type="text" name="tbk4" maxlength="50" <?php echo $readstatus; ?> value="<?php echo $hasil->TBS4; ?>" /></br>
		<input class="form-control" id="tbk5" type="text" name="tbk5" maxlength="50" <?php echo $readstatus; ?> value="<?php echo $hasil->TBS5; ?>" /></td>
		<td><input class="form-control" id="tar1" type="text" name="tar1" maxlength="50" value="<?php echo $hasil->TLS1; ?>" /></br>
		<input class="form-control" id="tar2" type="text" name="tar2" maxlength="50" value="<?php echo $hasil->TLS2; ?>" /></br>
		<input class="form-control" id="tar3" type="text" name="tar3" maxlength="50" value="<?php echo $hasil->TLS3; ?>" /></br>
		<input class="form-control" id="tar4" type="text" name="tar4" maxlength="50" value="<?php echo $hasil->TLS4; ?>" /></br>
		<input class="form-control" id="tar5" type="text" name="tar5" maxlength="50" value="<?php echo $hasil->TLS5; ?>" /></td>
		<td>
<?php
if($hasil->RTLS1==1)
{
?>
		<select name="s1" class="form-control"> <option value="3">Open</option>
    <option value="1" selected>On Progress</option>
    <option value="2">Selesai</option>
</select></br>
<?php
}
else if($hasil->RTLS1==3)
{
?>
		<select name="s1" class="form-control"> <option value="3" selected>Open</option>
    <option value="1">On Progress</option>
    <option value="2">Selesai</option>
</select></br>
<?php
}
else
{
?>
		<select name="s1" class="form-control"> <option value="3">Open</option>
    <option value="1">On Progress</option>
    <option value="2" selected>Selesai</option>
</select></br>
<?php
}
?>
<?php
if($hasil->RTLS2==1)
{
?>
<select name="s2" class="form-control"> <option value="3">Open</option>
    <option value="1" selected>On Progress</option>
    <option value="2">Selesai</option>
</select></br>
<?php
}
else if($hasil->RTLS2==3)
{
?>
<select name="s2" class="form-control"> <option value="3" selected>Open</option>
    <option value="1">On Progress</option>
    <option value="2">Selesai</option>
</select></br>
<?php
}
else
{
?>
<select name="s2" class="form-control"> <option value="3">Open</option>
    <option value="1">On Progress</option>
    <option value="2" selected>Selesai</option>
</select></br>
<?php
}
?>
<?php
if($hasil->RTLS3==1)
{
?>
<select name="s3" class="form-control"> <option value="3">Open</option>
    <option value="1" selected>On Progress</option>
    <option value="2">Selesai</option>
</select></br>
<?php
}
else if($hasil->RTLS3==3)
{
?>
<select name="s3" class="form-control"> <option value="3" selected>Open</option>
    <option value="1">On Progress</option>
    <option value="2">Selesai</option>
</select></br>
<?php
}
else
{
?>
<select name="s3" class="form-control"> <option value="3">Open</option>
    <option value="1">On Progress</option>
    <option value="2" selected>Selesai</option>
</select></br>
<?php
}
?>
<?php
if($hasil->RTLS4==1)
{
?>
<select name="s4" class="form-control"> <option value="3">Open</option>
    <option value="1" selected>On Progress</option>
    <option value="2">Selesai</option>
</select></br>
<?php
}
else if($hasil->RTLS4==3)
{
?>
<select name="s4" class="form-control"> <option value="3" selected>Open</option>
    <option value="1">On Progress</option>
    <option value="2">Selesai</option>
</select></br>
<?php
}
else
{
?>
<select name="s4" class="form-control"> <option value="3">Open</option>
    <option value="1">On Progress</option>
    <option value="2" selected>Selesai</option>
</select></br>
<?php
}
?>
<?php
if($hasil->RTLS5==1)
{
?>
<select name="s5" class="form-control"> <option value="3">Open</option>
    <option value="1" selected>On Progress</option>
    <option value="2">Selesai</option>
</select></br>
<?php
}
else if($hasil->RTLS5==3)
{
?>
<select name="s5" class="form-control"> <option value="3" selected>Open</option>
    <option value="1">On Progress</option>
    <option value="2">Selesai</option>
</select></br>
<?php
}
else
{
?>
<select name="s5" class="form-control"> <option value="3">Open</option>
    <option value="1">On Progress</option>
    <option value="2" selected>Selesai</option>
</select></br>
<?php
}
?>
</td>
		</tr>
		
		<tr>
		<td>II</td>
          <td><b>Kondisi Tidak Aman</b></td>
           <td>
 </td>
 <td>
 </td>
 <td>
 </td>
        </tr>
		<tr>
		<td></td>
		<td><input class="form-control" id="kta1" type="text" name="kta1" maxlength="50" value="<?php echo $hasil->K1; ?>" /></br>
		<input class="form-control" id="kta2" type="text" name="kta2" maxlength="50" value="<?php echo $hasil->K2; ?>" /></br>
		<input class="form-control" id="kta3" type="text" name="kta3" maxlength="50" value="<?php echo $hasil->K3; ?>" /></br>
		<input class="form-control" id="kta4" type="text" name="kta4" maxlength="50" value="<?php echo $hasil->K4; ?>" /></br>
		<input class="form-control" id="kta5" type="text" name="kta5" maxlength="50" value="<?php echo $hasil->K5; ?>" /></td>
		<td><input class="form-control" id="rtl6" type="text" name="rt6" maxlength="50" <?php echo $readstatus; ?> value="<?php echo $hasil->TBK1; ?>" /></br>
		<input class="form-control" id="rtl7" type="text" name="rt7" maxlength="50" <?php echo $readstatus; ?> value="<?php echo $hasil->TBK2; ?>" /></br>
		<input class="form-control" id="rtl8" type="text" name="rt8" maxlength="50" <?php echo $readstatus; ?> value="<?php echo $hasil->TBK3; ?>" /></br>
		<input class="form-control" id="rtl9" type="text" name="rt9" maxlength="50" <?php echo $readstatus; ?> value="<?php echo $hasil->TBK4; ?>" /></br>
		<input class="form-control" id="rtl10" type="text" name="rt10" maxlength="50" <?php echo $readstatus; ?> value="<?php echo $hasil->TBK5; ?>" /></td>
		<td><input class="form-control" id="tar6" type="text" name="tar6" maxlength="50" value="<?php echo $hasil->TLK1; ?>" /></br>
		<input class="form-control" id="tar7" type="text" name="tar7" maxlength="50" value="<?php echo $hasil->TLK2; ?>" /></br>
		<input class="form-control" id="tar8" type="text" name="tar8" maxlength="50" value="<?php echo $hasil->TLK3; ?>" /></br>
		<input class="form-control" id="tar9" type="text" name="tar9" maxlength="50" value="<?php echo $hasil->TLK4; ?>" /></br>
		<input class="form-control" id="tar10" type="text" name="tar10" maxlength="50" value="<?php echo $hasil->TLK5; ?>" /></td>
		<td>
<?php
if($hasil->RTLK1==1)
{
?>
<select name="k1" class="form-control"> <option value="3">Open</option>
    <option value="1" selected>On Progress</option>
    <option value="2">Selesai</option>
</select></br>
<?php
}
else if($hasil->RTLK1==3)
{
?>
<select name="k1" class="form-control"> <option value="3" selected>Open</option>
    <option value="1">On Progress</option>
    <option value="2">Selesai</option>
</select></br>
<?php
}
else
{
?>
<select name="k1" class="form-control"> <option value="3">Open</option>
    <option value="1">On Progress</option>
    <option value="2" selected>Selesai</option>
</select></br>
<?php
}
?>
<?php
if($hasil->RTLK2==1)
{
?>
<select name="k2" class="form-control"> <option value="3">Open</option>
    <option value="1" selected>On Progress</option>
    <option value="2">Selesai</option>
</select></br>
<?php
}
else if($hasil->RTLK2==3)
{
?>
<select name="k2" class="form-control"> <option value="3" selected>Open</option>
    <option value="1">On Progress</option>
    <option value="2">Selesai</option>
</select></br>
<?php
}
else
{
?>
<select name="k2" class="form-control"> <option value="3">Open</option>
    <option value="1">On Progress</option>
    <option value="2" selected>Selesai</option>
</select></br>
<?php
}
?>
<?php
if($hasil->RTLK3==1)
{
?>
<select name="k3" class="form-control"> <option value="3">Open</option>
    <option value="1" selected>On Progress</option>
    <option value="2">Selesai</option>
</select></br>
<?php
}
else if($hasil->RTLK3==3)
{
?>
<select name="k3" class="form-control"> <option value="3" selected>Open</option>
    <option value="1">On Progress</option>
    <option value="2">Selesai</option>
</select></br>
<?php
}
else
{
?>
<select name="k3" class="form-control"> <option value="3">Open</option>
    <option value="1">On Progress</option>
    <option value="2" selected>Selesai</option>
</select></br>
<?php
}
?>
<?php
if($hasil->RTLK4==1)
{
?>
<select name="k4" class="form-control"> <option value="3">Open</option>
    <option value="1" selected>On Progress</option>
    <option value="2">Selesai</option>
</select></br>
<?php
}
else if($hasil->RTLK4==3)
{
?>
<select name="k4" class="form-control"> <option value="3" selected>Open</option>
    <option value="1">On Progress</option>
    <option value="2">Selesai</option>
</select></br>
<?php
}
else
{
?>
<select name="k4" class="form-control"> <option value="3">Open</option>
    <option value="1">On Progress</option>
    <option value="2" selected>Selesai</option>
</select></br>
<?php
}
?>
<?php
if($hasil->RTLK5==1)
{
?>
<select name="k5" class="form-control"> <option value="3">Open</option>
    <option value="1" selected>On Progress</option>
    <option value="2">Selesai</option>
</select></br>
<?php
}
else if($hasil->RTLK5==3)
{
?>
<select name="k5" class="form-control"> <option value="3" selected>Open</option>
    <option value="1">On Progress</option>
    <option value="2">Selesai</option>
</select></br>
<?php
}
else
{
?>
<select name="k5" class="form-control"> <option value="3">Open</option>
    <option value="1">On Progress</option>
    <option value="2" selected>Selesai</option>
</select></br>
<?php
}
?>
</td>
		</tr>
		
		<tr>
		<td>III</td>
          <td><b>Lingkungan Kerja</b></td>
           <td>
 </td>
 <td>
 </td>
 <td>
 </td>
        </tr>
		<tr>
		<td></td>
		<td><input class="form-control" id="lk1" type="text" name="lk1" maxlength="50" value="<?php echo $hasil->G1; ?>" /></br>
		<input class="form-control" id="lk2" type="text" name="lk2" maxlength="50" value="<?php echo $hasil->G2; ?>" /></br>
		<input class="form-control" id="lk3" type="text" name="lk3" maxlength="50" value="<?php echo $hasil->G3; ?>" /></br>
		<input class="form-control" id="lk4" type="text" name="lk4" maxlength="50" value="<?php echo $hasil->G4; ?>" /></br>
		<input class="form-control" id="lk5" type="text" name="lk5" maxlength="50" value="<?php echo $hasil->G5; ?>" /></td>
		<td><input class="form-control" id="rtl11" type="text" name="rt11" maxlength="50" <?php echo $readstatus; ?> value="<?php echo $hasil->TBG1; ?>" /></br>
		<input class="form-control" id="rtl12" type="text" name="rt12" maxlength="50" <?php echo $readstatus; ?> value="<?php echo $hasil->TBG2; ?>" /></br>
		<input class="form-control" id="rtl13" type="text" name="rt13" maxlength="50" <?php echo $readstatus; ?> value="<?php echo $hasil->TBG3; ?>" /></br>
		<input class="form-control" id="rtl14" type="text" name="rt14" maxlength="50" <?php echo $readstatus; ?> value="<?php echo $hasil->TBG4; ?>" /></br>
		<input class="form-control" id="rtl15" type="text" name="rt15" maxlength="50" <?php echo $readstatus; ?> value="<?php echo $hasil->TBG5; ?>" /></td>
		<td><input class="form-control" id="tar11" type="text" name="tar11" maxlength="50" value="<?php echo $hasil->TLG1; ?>" /></br>
		<input class="form-control" id="tar12" type="text" name="tar12" maxlength="50" value="<?php echo $hasil->TLG2; ?>" /></br>
		<input class="form-control" id="tar13" type="text" name="tar13" maxlength="50" value="<?php echo $hasil->TLG3; ?>" /></br>
		<input class="form-control" id="tar14" type="text" name="tar14" maxlength="50" value="<?php echo $hasil->TLG4; ?>" /></br>
		<input class="form-control" id="tar15" type="text" name="tar15" maxlength="50" value="<?php echo $hasil->TLG5; ?>" /></td>
		<td>
<?php
if($hasil->RTLG1==1)
{
?>
<select name="l1" class="form-control"> <option value="3">Open</option>
    <option value="1" selected>On Progress</option>
    <option value="2">Selesai</option>
</select></br>
<?php
}
else if($hasil->RTLG1==3)
{
?>
<select name="l1" class="form-control"> <option value="3" selected>Open</option>
    <option value="1">On Progress</option>
    <option value="2">Selesai</option>
</select></br>
<?php
}
else
{
?>
<select name="l1" class="form-control"> <option value="3">Open</option>
    <option value="1">On Progress</option>
    <option value="2" selected>Selesai</option>
</select></br>
<?php
}
?>
<?php
if($hasil->RTLG2==1)
{
?>
<select name="l2" class="form-control"> <option value="3">Open</option>
    <option value="1" selected>On Progress</option>
    <option value="2">Selesai</option>
</select></br>
<?php
}
else if($hasil->RTLG2==3)
{
?>
<select name="l2" class="form-control"> <option value="3" selected>Open</option>
    <option value="1">On Progress</option>
    <option value="2">Selesai</option>
</select></br>
<?php
}
else
{
?>
<select name="l2" class="form-control"> <option value="3">Open</option>
    <option value="1">On Progress</option>
    <option value="2" selected>Selesai</option>
</select></br>
<?php
}
?>
<?php
if($hasil->RTLG3==1)
{
?>
<select name="l3" class="form-control"> <option value="3">Open</option>
    <option value="1" selected>On Progress</option>
    <option value="2">Selesai</option>
</select></br>
<?php
}
else if($hasil->RTLG3==3)
{
?>
<select name="l3" class="form-control"> <option value="3" selected>Open</option>
    <option value="1">On Progress</option>
    <option value="2">Selesai</option>
</select></br>
<?php
}
else
{
?>
<select name="l3" class="form-control"> <option value="3">Open</option>
    <option value="1">On Progress</option>
    <option value="2" selected>Selesai</option>
</select></br>
<?php
}
?>
<?php
if($hasil->RTLG4==1)
{
?>
<select name="l4" class="form-control"> <option value="3">Open</option>
    <option value="1" selected>On Progress</option>
    <option value="2">Selesai</option>
</select></br>
<?php
}
else if($hasil->RTLG4==3)
{
?>
<select name="l4" class="form-control"> <option value="3" selected>Open</option>
    <option value="1">On Progress</option>
    <option value="2">Selesai</option>
</select></br>
<?php
}
else
{
?>
<select name="l4" class="form-control"> <option value="3">Open</option>
    <option value="1">On Progress</option>
    <option value="2" selected>Selesai</option>
</select></br>
<?php
}
?>
<?php
if($hasil->RTLG5==1)
{
?>
<select name="l5" class="form-control"> <option value="3">Open</option>
    <option value="1" selected>On Progress</option>
    <option value="2">Selesai</option>
</select></br>
<?php
}
else if($hasil->RTLG5==3)
{
?>
<select name="l5" class="form-control"> <option value="3" selected>Open</option>
    <option value="1">On Progress</option>
    <option value="2">Selesai</option>
</select></br>
<?php
}
else
{
?>
<select name="l5" class="form-control"> <option value="3">Open</option>
    <option value="1">On Progress</option>
    <option value="2" selected>Selesai</option>
</select></br>
<?php
}
?>
</td>
		</tr></table>
		NIK Anggota     </br>
        <input class="form-control" id="nama1" type="text" name="nama1" maxlength="50" value="<?php echo $hasil->ANGGOTA; ?>" required />
        <input class="form-control" id="nama2" type="hidden" name="nama2" maxlength="50" value="<?php echo $hasil->ANGGOTA2; ?>" required />
</br></br>
<?php
}
?>
		Pengawas Telah Memvalidasi
		<?php
		if($this->session->userdata('role')==3)
		{
			if($hasil->PENGAWAS)
			{
			?>
			<input disabled name="pengawas" type="checkbox" value="<?php echo $this->session->userdata('user_name'); ?>" checked></br></br>
			<input name="pengawas" type="hidden" value="<?php echo $this->session->userdata('user_name'); ?>">
			<?php
			}
			else
			{
			?>
			<input disabled name="pengawas" type="checkbox" value="<?php echo $this->session->userdata('user_name'); ?>"></br></br>
			<input name="pengawas" type="hidden" value="<?php echo $this->session->userdata('user_name'); ?>">
			<?php
			}
			?>
			Sekretaris Telah Memvalidasi
			<?php
			if($hasil->STATUS==3)
			{
			?>
			<input name="skertaris" type="checkbox" value="1" checked></br></br>
			<?php
			}
			else
			{
			?>
			<input name="skertaris" type="checkbox" value="1"></br></br>
			<?php
			}
		}
		else if($this->session->userdata('role')==1)
		{
			if($hasil->PENGAWAS)
			{
			?>
			<input disabled name="pengawas" type="checkbox" value="<?php echo $this->session->userdata('user_name'); ?>" checked></br></br>
			<input name="pengawas" type="hidden" value="<?php echo $this->session->userdata('user_name'); ?>">
			<?php
			}
			else
			{
			?>
			<input disabled name="pengawas" type="checkbox" value="<?php echo $this->session->userdata('user_name'); ?>"></br></br>
			<input name="pengawas" type="hidden" value="<?php echo $this->session->userdata('user_name'); ?>">
			<?php
			}
			?>
			Sekretaris Telah Memvalidasi
			<?php
			if($hasil->STATUS==3)
			{
			?>
			<input disabled name="skertaris" type="checkbox" value="1" checked></br></br>
			<input name="skertaris" type="hidden" value="1"></br></br>
			<?php
			}
			else
			{
			?>
			<input disabled name="skertaris" type="checkbox" value="1"></br></br>
			<input name="skertaris" type="hidden" value="0"></br></br>
			<?php
			}
		}
		else
		{
			if($hasil->PENGAWAS)
			{
			?>
			<input name="pengawas" type="checkbox" value="<?php echo $this->session->userdata('user_name'); ?>" checked></br></br>
			<?php
			}
			else
			{
			?>
			<input name="pengawas" type="checkbox" value="<?php echo $this->session->userdata('user_name'); ?>"></br></br>
			<?php
			}
		}
		?>
		<input type="submit" name="submit" class="btn btn-primary" value="Kirim"/>
		</form>
		</div></body></html>